package com.scs.application.modules.wm.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.scs.application.modules.wm.entity.TransferItem;
import com.scs.application.core.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
public interface TransferItemMapper extends IBaseMapper<TransferItem> {
    IPage<TransferItem> pageForRed(IPage page, @Param(Constants.WRAPPER) QueryWrapper wrapper, @Param("params") Map<String, Object> params);

    List<TransferItem> getTransferItemBySns(@Param("sns") List<String> sns, @Param("warehouseId") String warehouseId,
                                            @Param("type") String type, @Param("settlementType") String settlementType,
                                            @Param("flowStatus") String flowStatus,
                                            @Param("itemIdReturnFromList") List<String> itemIdReturnFromList
    );
}
